package com.cbs.android.component.applicationutils;

import android.content.Context;

import com.cbs.android.component.network.HttpClient;


/**
 * Created by broche on 10/30/15.
 */
public class Global {
    private static String serverHost = "";

    public static String getServerHost() {
        return serverHost;
    }

    public static void setServerHost(String host) {
        serverHost = host;
    }

    private static int appId = 0;

    public static int getAppId() {
        return appId;
    }

    public static void setAppId(int appId) {
        Global.appId = appId;
    }

    private static int versionId = 0;

    public static int getVersionId() {
        return versionId;
    }

    public static void setVersionId(int versionId) {
        Global.versionId = versionId;
    }

    private static HttpClient httpClient;

    public static HttpClient getHttpClient() {
        return httpClient;
    }

    public static void setHttpClient(HttpClient httpClient) {
        Global.httpClient = httpClient;
    }

    public static void init(Context context) {
        httpClient = new HttpClient.Builder()
                .cache(context, "cbshttp").build();
    }
}
